#ifndef  _PARSER_H_
#define  _PARSER_H_
#include <stdlib.h>
#include <stdio.h>

#define EOF_P        -1
#define NORMAL     0
#define DONT_FETCH 1
#define DONT_DEBUF 2
#define DONT_DEBUF_AND_FETCH 4

typedef struct parser{
	int name_size;
	char * name;
	FILE * yyin;
	char * buffer;
	char * readlineBuffer; /* Aug 28, 2006 : Introducing GNU readline */
	int readlineWhere;
	int  readlineStart;
	int  line;
	int  number;
	int  value;
	int  state_comment;
	int  state;
	int  mode;
	int  yychar;
}PARSER;

PARSER * NewParser(char * file);
int parser(PARSER * parse);
void DeleteParser(PARSER * get);
int FetchLine(PARSER * get);
int FetchNumber(PARSER * get);

#endif /*_PARSER_H_*/
